package com.qqclient.service;

import com.qqclient.thread.ClientConnectServerThread;

import java.util.HashMap;
import java.util.Map;

/**
 * 1. 该类用于管理 客户端连接到 服务器端的线程类
 */
public class ManageClientConnectServerThread {
    // key - 用户id,
    private static Map<String, ClientConnectServerThread> hm = new HashMap();

    public static void  addClientConnectServerThread(String userId,ClientConnectServerThread thread){
        hm.put(userId,thread);
    }


    public static ClientConnectServerThread  getClientConnectServerThread(String userId){
      return  hm.get(userId);
    }

}
